<?php

namespace plugin\coleappversion\app\admin\controller;

use app\common\controller\BaseAdminController;
use plugin\coleappversion\app\admin\logic\AppVersionLogic;

class AppVersionController extends BaseAdminController
{

    protected $noNeedRight = [
        'changeStatus'
    ];

    protected function init()
    {
        parent::init();
        $this->logic = new AppVersionLogic();
    }

    protected function searchWhere()
    {
        $where = [];
        $this->form['system_key'] && $where[] = ['system_key', '=', $this->form['system_key']];
        return $where;
    }

    protected function listOrder()
    {
        return ['regular_update' => "desc"];
    }
}
